<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Small_auth_order.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_auth_order.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '预授权订单',
                    name: 'Small_auth_order',
                    url: "/Small_auth_order/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {remark:''},
                editFormOptions: [
                [ {"title":"备注","field":"remark","type":"textarea","colSize":8}]
                ],
                searchFormFields:{"order_number":"",},
                searchFormOptions: [
                [{"title":"订单号","field":"order_number","type":"string"},]
                ],
                columns: [{field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'pay_code',title:'付款码',type:'string',width:100,align:'left',sortable:true},
                       {field:'order_number',title:'订单号',type:'string',width:220,align:'left'},
                       {field:'pay_price',title:'支付金额',type:'decimal',width:90,align:'left'},
                       {field:'shop_price',title:'消费金额',type:'decimal',width:90,align:'left'},
                       {field:'refund_price',title:'退款金额',type:'decimal',width:90,align:'left'},
                       {field:'status',title:'支付状态（0未付，1已付）',
                       bind: {
                           key: "",
                             data: [
                             { key: 0, value: "未付" },
                             { key: 1, value: "已付" },

                           ]
                         },
                       type:'int',width:90,align:'left'},
                       {field:'pay_type',title:'支付方式',
                       bind: {
                           key: "",
                             data: [
                             { key: 0, value: "微信" },
                           ]
                         },
                       type:'int',width:90,align:'left'},
                       {field:'qname',
                       title:'收款场景',
                       type:'text',
                       width:90,
                       bind: { key: "addmap", data: [] },
                       align:'left'},
                      
                       {field:'pay_time',title:'付款时间',type:'datetime',width:150,align:'left',sortable:true},
                       {field:'refund_time',title:'退款时间',type:'datetime',width:150,align:'left',sortable:true},
                       {field:'refund_operator',title:'退款操作人ID',type:'int',width:90,align:'left'},
                       {field:'refund_status',title:'退款状态',
                       bind: {
                           key: "",
                             data: [
                             { key: 0, value: "未退" },
                             { key: 1, value: "已退" },
                                 
                           ]
                         },
                       type:'int',width:90,align:'left'},
                       {field:'refund_remark',title:'退款备注',type:'string',width:220,align:'left'},
                       {field:'settlement_status',
                       bind: {
                           key: "",
                             data: [
                             { key: 0, value: "未结算" },
                             { key: 1, value: "已结算" },
                                 
                           ]
                         },
                       title:'结算状态',type:'int',width:90,align:'left'},
                       {field:'remark',title:'备注',type:'string',width:220,align:'left'},
                       {field:'merchantCode',title:'商户编码',type:'string',width:220,align:'left'},
                       {field:'merchantName',title:'商户名称',type:'string',width:220,align:'left'},
                       {field:'cust_phone',title:'客户手机号',type:'string',width:220,align:'left'},
                       {field:'cust_remark',title:'客户备注',type:'string',width:220,align:'left'},
                       {field:'creator',title:'创建人名称',type:'string',width:220,align:'left'},
                       {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'modifier',title:'修改人名称',type:'string',width:220,align:'left'},
                       {field:'modifierID',title:'修改人id',type:'int',width:90,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'open_id',title:'微信id',type:'string',width:220,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
